package com.ruoyi.products.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.products.mapper.BussCouponsMapper;
import com.ruoyi.products.domain.BussCoupons;
import com.ruoyi.products.service.IBussCouponsService;

/**
 * 套餐Service业务层处理
 * 
 * @author star
 * @date 2025-06-06
 */
@Service
public class BussCouponsServiceImpl implements IBussCouponsService 
{
    @Autowired
    private BussCouponsMapper bussCouponsMapper;

    /**
     * 查询套餐
     * 
     * @param id 套餐主键
     * @return 套餐
     */
    @Override
    public BussCoupons selectBussCouponsById(Long id)
    {
        return bussCouponsMapper.selectBussCouponsById(id);
    }

    /**
     * 查询套餐列表
     * 
     * @param bussCoupons 套餐
     * @return 套餐
     */
    @Override
    public List<BussCoupons> selectBussCouponsList(BussCoupons bussCoupons)
    {
        return bussCouponsMapper.selectBussCouponsList(bussCoupons);
    }

    /**
     * 新增套餐
     * 
     * @param bussCoupons 套餐
     * @return 结果
     */
    @Override
    public int insertBussCoupons(BussCoupons bussCoupons)
    {
        return bussCouponsMapper.insertBussCoupons(bussCoupons);
    }

    /**
     * 修改套餐
     * 
     * @param bussCoupons 套餐
     * @return 结果
     */
    @Override
    public int updateBussCoupons(BussCoupons bussCoupons)
    {
        return bussCouponsMapper.updateBussCoupons(bussCoupons);
    }

    /**
     * 批量删除套餐
     * 
     * @param ids 需要删除的套餐主键
     * @return 结果
     */
    @Override
    public int deleteBussCouponsByIds(Long[] ids)
    {
        return bussCouponsMapper.deleteBussCouponsByIds(ids);
    }

    /**
     * 删除套餐信息
     * 
     * @param id 套餐主键
     * @return 结果
     */
    @Override
    public int deleteBussCouponsById(Long id)
    {
        return bussCouponsMapper.deleteBussCouponsById(id);
    }
}
